package org.starsource.forum.client.view;

import java.util.List;

import org.starsource.forum.client.domain.ResourceObject;
import com.google.gwt.user.client.ui.ListBox;

public class FileListBox extends ListBox {
	public FileListBox() {
		super(true);
	}
	
	private List<ResourceObject> fileList;
	public void setFileList(List<ResourceObject> fileList) {
		this.fileList = fileList;
		this.clear();
		for(int index = 0; index < fileList.size(); index ++) {
			this.addItem(fileList.get(index).getUrl());
		}
	}
	public List<ResourceObject> getFileList() {
		return this.fileList;
	}
}
